<div class="left">
<h2>Newsy</h2>
{foreach from=$news key=nr item=data}
<div class="left_box">
<h3 style="color: #E0692A; font-size: 11pt;">{$data->getTitle()|truncate:100}</h3>
<span class="news_tytul">
<a style="float:left;" href="?id_news={$data->getIdNews()}" title="{$data->getTitle()|escape:'html'}">
	<img src="http://www.pcunited.info/obrazki/ikony/folder_files.png" style="border-width: 0px;" alt="{$data->getTitle()|escape:'html'}" /></a>

</span>
{assign var=category value=$data->getCategories()}
<a href="?ctrl=category&id_category={$category->getIdCategory()}"><span style="color: red; font-size: 10px;">{$category->getName()}</span></a>

{if $data->getUrlImage() != ''}
<img class="image" src="{$data->getUrlImage()}" alt="{$dane.tytul|escape:'html'}" /> 
{/if}
<p>{$data->getIntro()}</p>
{if $onlyOne == true}
<p>{$data->getStory()}</p>

{/if}
<!--<div class="news_stopka"> -->
{assign var=vortals value=$data->getVortals()}
{assign var=idNews value=$data->getIdNews()}
{assign var=rating value=$newsratings[$idNews]}
<a href="?ctrl=vortal&id_vortal={$vortals->getIdVortal()}">{$vortals->getName()}</a>, {$data->getDate()|date_format:"%d-%m-%y"} 
<br />KLIKNIĘĆ: {$data->getClickCounter()}. OCEN: <strong>{$rating->getCounter()}</strong>, pozytywnych {$rating->getPercentPositive()} %
<!-- </div> -->
<div class="news_reklama">
<a href="?ctrl=news&action=read&id_news={$idNews}" title="{$data->getTitle()|escape:'html'}">Czytaj dalej</a> albo oceń na
<span style="font-size: 20px;">
<a href="?ctrl=news&action=rate&id_news={$data->getIdNews()}&good=yes"> + </a>&nbsp; 
<a href="?ctrl=news&action=rate&id_news={$data->getIdNews()}&good=no"> - </a>
</span>
</div>
<hr />
{/foreach}
</div>